import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

// 导入全局样式
import '@/styles/index.scss'
// 导入Vant UI库
import Vant, {Lazyload, ImagePreview} from 'vant'
import 'vant/lib/index.css'
// 混入  mixins
import '@/utils/mixins'
// 导入全局组件
import '@/components/index'
// 导入axios
import {axios} from '@/api/axios'
// 导入ajax
import {ajax} from '@/api'

Vue.use(Vant)
// 懒加载
Vue.use(Lazyload);
// 图片预览
Vue.use(ImagePreview);


Vue.config.productionTip = false

// 全局axios
Vue.prototype.$axios = axios
// 全局Ajax
Vue.prototype.$ajax = ajax

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
